package com.java复习.IO流;

import java.io.FileOutputStream;
import java.io.IOException;

public class demo3 {
    public static void main(String[] args) throws IOException {

        // 输出流

        FileOutputStream fos = new FileOutputStream("D:\\Desktop\\b.txt");

        String str = "冷某人";
        byte[] b = str.getBytes();
        fos.write(b);
        fos.close();
    }
}
